<template>
  <div class="tails" :title="data.sTitle" style=" padding: 0 4px;">
    <div class="top">
      <img :src="data.sCoverList[2].url" alt="" />
    </div>
    <div class="bottom">
      {{ data.sTitle }}
    </div>
    <div class="xuan">
      <div>{{ data.iTotalPlay }}</div>
      <div>{{ data.sIdxTime.split(" ")[0] }}</div>
    </div>
    <div>
      <img
        src="/img/u=30380529,3879027376&fm=253&fmt=auto&app=138&f=JPEG.webp"
        alt=""
      />
    </div>
  </div>
</template>

<script>
export default {
  props: ["data"],
  mounted() {
    // console.log(this.data, 22);
  },
};
</script>

<style lang="scss" scoped>
.tails {
  background-color: #fff;
  &:not(:nth-child(4), :nth-child(8)) {
    margin-right: 7px;
  }
  &:hover > div:last-child {
    z-index: 1;
  }
  cursor: pointer;
  margin-bottom: 40px;
  position: relative;
  width: 212px;
  height: 175px;
  // border: 1px solid red;
  .top {
    height: 125px;
    img {
      border-radius: 2px;
      height: 100%;
      width: 100%;
    }
  }
  .bottom {
    // border: 1px solid greenyellow;
    font-size: 14px;
    height: 40px;
    overflow: hidden;
    margin-top: 10px;
  }
  .xuan {
    position: absolute;
    width: 204px;
    left: 4px;
    right: 0;
    top: 110px;
    padding: 0 8px;
    font-size: 12px;
    color: white;
    background-color: rgba(5, 4, 8, 0.752);
    display: flex;
    justify-content: space-between;
    div {
      &:first-child {
        padding-left: 15px;
        background-position: -256px -62px;
        background-image: url("/public/img/index.png");
      }
    }
  }
  > div:last-child {
    // border: 1px solid red;
    padding: 0 4px;
    width: 204px;
    text-align: center;
    position: absolute;
    left: 4px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.329);
    top: 0;
    height: 125px;
    padding-top: 44px;
    z-index: -1;
    img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
    }
  }
}
</style>